package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.etone.smartAudit.enums.ItemSourceType;
import com.etone.smartAudit.enums.StateType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: 蒋学伟
 * @create: 2020-07-16 10:37:22
 * @Description 项目资源
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName(value = "f_item_source")
public class ItemSource implements Serializable {

    @TableId(type = IdType.AUTO, value = "intId")
    private Integer id;

    /**
     * 资源名称
     */
    @TableField("vcName")
    private String name;

    /**
     * 排序
     */
    @TableField("intSort")
    private Integer sort;

    /**
     * 状态
     */
    @TableField("vcState")
    private StateType state;

    /**
     * 类型
     */
    @TableField("vcType")
    private ItemSourceType type;

    /**
     * 封面图
     */
    @TableField("vcCover")
    private String cover;

    /**
     * 申请次数
     */
    @TableField("intApplyCnt")
    private Integer applyCnt;

    /**
     * 说明｜介绍
     */
    @TableField(value = "vcRemark")
    private String remark;

    /**
     * 附件
     */
    @TableField(value = "vcFiles", updateStrategy = FieldStrategy.IGNORED)
    private String files;

    /**
     * 详情
     */
    @TableField(value = "vcDetail")
    private String detail;

    /**
     * 设备当前租用项目id
     */
    @TableField(value = "intRentItemId")
    private Integer rentItemId;

    /**
     * 设备当前租用项目名称
     */
    @TableField(value = "vcRentItemName")
    private String rentItemName;

    /**
     * 设备当前租用到期时间
     */
    @TableField(value = "dtRentExpirationTime")
    private Date rentExpirationTime;

}
